package cn.com.xuxiaowei.vo;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

/**
 * 用户
 *
 * @author xuxiaowei
 * @since 0.0.1
 */
@Data
@JacksonXmlRootElement(localName = "soapenv:Envelope")
public class UserVo {

    @JacksonXmlProperty(isAttribute = true, localName = "xmlns:soapenv")
    private String soapenv = "http://schemas.xmlsoap.org/soap/envelope/";

    @JacksonXmlProperty(isAttribute = true, localName = "xmlns:ser")
    private String ser = "http://service.caes.com";

    @JacksonXmlProperty(localName = "soapenv:Header")
    private String header;

    @JacksonXmlProperty(localName = "soapenv:Body")
    private GetListRequestBody body;

    @Data
    public static class GetListRequestBody {

        @JacksonXmlProperty(localName = "ser:getList")
        private GetListId getById;

    }

    @Data
    public static class GetListId {

        private ListRequest request;

    }

    @Data
    public static class ListRequest {

        private String id;

        private String password;

        private String username;

    }

}
